package com.ks.core.framework.cpsupload.demos.orderpayinvoice.paystrategy;

import java.math.BigDecimal;

// 微信支付策略
class WechatPaymentStrategy implements PaymentStrategy {
    @Override
    public boolean pay(String orderId, BigDecimal amount) {
        // 调用微信支付API
        System.out.println("微信支付请求: 订单=" + orderId + ", 金额=" + amount);
        return true;
    }

    @Override
    public boolean refund(String orderId, BigDecimal amount, String transactionId) {
        System.out.println("微信退款请求: 订单=" + orderId + ", 金额=" + amount);
        return true;
    }
}